',document.body.appendChild(o),null!==(t=document.getElementById("izMsngrIframeWrapper"))&&void 0!==t&&t.appendChild(i)}catch(e){u.Helper.displayLog("Error in appending child in messenger-div")}}g.frameElement=i,(g.frameContentWindow=i.contentWindow).fbAsyncInit=function(){g.addHtmlContainer(l.Config.messenger.pageId),g.frameContentWindow.FB.init({appId:g.appId,autoLogAppEvents:!0,xfbml:!0,version:"v18.0"}),g.frameContentWindow.FB.Event.subscribe("send_to_messenger",function(e){"rendered"==e.event&&0==e.is_after_optin&&setTimeout(function(){return s(n,void 0,void 0,function(){var t;return c(this,function(e){return g.frameContentWindow.document.querySelector("#izootoFbMessengerMainContainer")&&(g.isElementFound?(t=window.getComputedStyle(g.frameContentWindow.document.querySelector(".fb-send-to-messenger")),256<(t=parseInt(t.width))&&(t+=33,i.style="max-width: ".concat(t,"px;width: ").concat(t,"px;")),g.syncMessengerEvent()):g.promptSequencing(d.KeyMapper.MESSENGER_READY_SHOW)),[2]})})},400),"opt_in"==e.event&&(g.setMultiMessengerStorage(d.KeyMapper.MSNGR_IS_SUBSCRIBED,1),g.sendEvent(d.KeyMapper.MESSENGER_SUBSCRIBED),f.GoogleAnalytics.processMessanger("Send to Messenger"),g.promptSequencing(d.KeyMapper.MESSENGER_SUBSCRIBED),setTimeout(function(){g.htmlContainerClose(!0)},1e3))})};setTimeout(function(){var e=document.createElement("script");e.src="https://connect.facebook.net/en_US/sdk.js",i.contentDocument.body.appendChild(e)},200)}}else u.Helper.displayLog("Messenger is disabled for this device!")},g.syncMessengerEvent=function(){g.sendEvent(d.KeyMapper.MESSENGER_PROMPTED),1==o.Storage.getConfigLocal("messengerRepeated",d.KeyMapper.STATS)?f.GoogleAnalytics.processMessanger("Repeat Impression"):f.GoogleAnalytics.processMessanger("Impression"),o.Storage.setConfigLocal("messengerRepeated",1,d.KeyMapper.STATS),g.promptSequencing(d.KeyMapper.MESSENGER_PROMPTED),g.setRepeatPromptDelay(l.Config.messenger.repeatDelay)},g.showMessenger=function(){document.querySelector("#izMsngrOptinOuterWrapper").style.display="block",g.syncMessengerEvent()},g.htmlContainerClose=function(e){void 0===e&&(e=!1);var t=document.getElementById(g.anyWhereSelector)?g.frameElement:document.querySelector("#izMsngrOptinOuterWrapper");t&&(t.style.display="none"),0==e&&f.GoogleAnalytics.processMessanger("Dismissed"),g.promptSequencing(d.KeyMapper.PROMPT_CLOSED)},g.getHtmlContainer=function(e){return(e=void 0===e||e)?' '):'
'},g.addHtmlContainer=function(e){var t=g.htmlContainer,n=document.createElement("div");n.setAttribute("id","izootoFbMessengerMainContainer");var o=function(){window.outerWidth<=600?n.setAttribute("class","izmobilemsngr"):n.setAttribute("class","")};o(),window.addEventListener("resize",o),n.innerHTML=t,(g.frameContentWindow.document.body||g.frameContentWindow.document.head).appendChild(n);var o=l.Config.UUID,t=l.Config.client+"=/="+o+"=/="+l.Config.global.os+"=/="+l.Config.global.browserVer+"=/="+l.Config.global.deviceType+"=/="+l.Config.global.browserType,o=document.createElement("div");o.setAttribute("class","fb-send-to-messenger"),o.setAttribute("messenger_app_id",g.appId),o.setAttribute("page_id",e),o.setAttribute("color",g.isElementFound?l.Config.messenger.color:"blue"),o.setAttribute("size",g.isElementFound?l.Config.messenger.size:"large"),o.setAttribute("data-ref",t),l.Config.messenger.buttonTextType&&g.isElementFound&&o.setAttribute("cta_text",this.ctaText[l.Config.messenger.buttonTextType]),null!==(t=g.frameContentWindow.document.querySelector("#izFbContainer"))&&void 0!==t&&t.appendChild(o),u.Helper.izootoBrandingHandler(g.frameContentWindow)},g.isDelayed=function(){return 1==g.getMultiMessengerStorage(d.KeyMapper.MSNGR_IS_SUBSCRIBED)||g.getMultiMessengerStorage(d.KeyMapper.MSNGR_REPEAT_PROMPT_DELAY)>Date.now()},g.isAlreadySubscribed=function(){return 1==g.getMultiMessengerStorage(d.KeyMapper.MSNGR_IS_SUBSCRIBED)},g.syncEvent=function(e){var t="",t=e==d.KeyMapper.MESSENGER_SUBSCRIBED?u.Helper.getEndpoint("syncMessenger"):u.Helper.getEndpoint(e),e=g.getParameterToSync(e);i.HttpRequest.postForm(t,e,!0).then(function(){}).catch(function(e){})},g.setRepeatPromptDelay=function(e){var t;0!==e&&(t=(t=new Date).setTime(t.getTime()+60*e*1e3),"Messenger: Setting repeat prompt delay for ".concat(e," minutes"),g.setMultiMessengerStorage(d.KeyMapper.MSNGR_REPEAT_PROMPT_DELAY,t))},g.setMultiMessengerStorage=function(e,t){var n=o.Storage.getConfigLocal(l.Config.messenger.pageId,d.KeyMapper.MESSENGER);(n=n?u.Helper.parseToJSON(n):{})[e]=t;n=JSON.stringify(n);o.Storage.setConfigLocal(l.Config.messenger.pageId,n,d.KeyMapper.MESSENGER)},g.getMultiMessengerStorage=function(e){var t=o.Storage.getConfigLocal(l.Config.messenger.pageId,d.KeyMapper.MESSENGER);return t&&null!=(t=u.Helper.parseToJSON(t))[e]?t[e]:""},g.promptSequencing=function(e){-1<[d.KeyMapper.MESSENGER_PROMPTED,d.KeyMapper.MESSENGER_SUBSCRIBED,d.KeyMapper.PROMPT_CLOSED,d.KeyMapper.MESSENGER_READY_SHOW,d.KeyMapper.MESSENGER_READY].indexOf(e)&&!g.isElementFound&&r.ChannelEventHandler.event("messenger",e)},g.sendEvent=function(e){var t=[d.KeyMapper.MESSENGER_SUBSCRIBED];l.Config.messenger.syncPrompt&&t.push(d.KeyMapper.MESSENGER_PROMPTED),-1!=t.indexOf(e)&&g.syncEvent(e)},g.getParameterToSync=function(e){var t={pid:l.Config.client,btype:l.Config.global.browserType,dtype:l.Config.global.deviceType,os:l.Config.global.os,page_id:l.Config.messenger.pageId,bKey:l.Config.UUID};switch(e){case d.KeyMapper.MESSENGER_SUBSCRIBED:t.ms=1;break;case d.KeyMapper.MESSENGER_PROMPTED:t.msp=1;break;default:t[e]=1}return t},g.anyWhereSelector="izooto-messenger-subscription-button",g.isElementFound=!1,g.frameElement=void 0,g.triggered=!1,g.appId="1061905150807841",g.ctaText=[,"GET_THIS_IN_MESSENGER","RECEIVE_THIS_IN_MESSENGER","SEND_THIS_TO_ME","GET_CUSTOMER_ASSISTANCE","GET_CUSTOMER_SERVICE","GET_SUPPORT","LET_US_CHAT","SEND_ME_MESSAGES","ALERT_ME_IN_MESSENGER","SEND_ME_UPDATES","MESSAGE_ME","LET_ME_KNOW","KEEP_ME_UPDATED","TELL_ME_MORE","SUBSCRIBE_IN_MESSENGER","SUBSCRIBE_TO_UPDATES","GET_MESSAGES","SUBSCRIBE","GET_STARTED_IN_MESSENGER","LEARN_MORE_IN_MESSENGER","GET_STARTED"],g.heightMap={standard:"44px",large:"58px",xlarge:"71px"},g);function g(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;var o=n(0),i=n(1),r=n(3),a=n(2);t.Session=(s.init=function(){o.Config.global.isSessionHandled||(s.sessionHandler(),o.Config.global.isSessionHandled=!0)},s.sessionHandler=function(){var e;s.isSessionExpired()&&(t=r.Storage.getConfigLocal(a.KeyMapper.SESSION_COUNT,a.KeyMapper.SESSION),e=r.Storage.getConfigLocal(a.KeyMapper.FIRST_SESSION,a.KeyMapper.SYNC),t&&e&&i.Helper.getDateDiffrenceFromPresent(e)<=s.visitWithinDays?r.Storage.setConfigLocal(a.KeyMapper.SESSION_COUNT,t+1,a.KeyMapper.SESSION):(r.Storage.setConfigLocal(a.KeyMapper.SESSION_COUNT,1,a.KeyMapper.SESSION),r.Storage.updateLastSync(a.KeyMapper.FIRST_SESSION)));var t=(t=new Date).setTime(t.getTime()+60*s.sessionExpiryMinute*1e3);new Date(t),r.Storage.setConfigLocal(a.KeyMapper.SESSION_EXPIRY,t,a.KeyMapper.SESSION)},s.isSessionExpired=function(){var e=r.Storage.getConfigLocal(a.KeyMapper.SESSION_EXPIRY,a.KeyMapper.SESSION),t=new Date;return!(""!=e&&e>t.getTime())&&(s.isNew=!0)},s.getSessionCount=function(){return r.Storage.getConfigLocal(a.KeyMapper.SESSION_COUNT,a.KeyMapper.SESSION)||0},s.isNew=!1,s.sessionExpiryMinute=30,s.visitWithinDays=7,s);function s(){}},function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n
a[0]&&t[1]=e){t=void 0;return(t=f.exitIntent.maxAllowedPost==e?f.getExitIntentSortedFeed(n):n).sort(function(e,t){return.5-Math.random()}),(t=f.getFeaturedFeed(t)).splice(0,e)}},f.getExitIntentSortedFeed=function(e){if(""==e[0].m)for(var t=1;t=window.innerHeight&&t(),n=e<=0?0:e},!1))},f.backButtonIntentHandler=function(){var e=i.Storage.getSessionStorage("izootoOSNDisplayed");""==location.hash&&!e&&f.isSupportedBackIntent()&&(f.isFirstPage()?(f.onBackButtonTriggerHandler(!0),f.onUrlChangeHandler(),window.addEventListener("beforeunload",f.setHistoryStateIntoStorage),f.setHistoryStateIntoStorage()):f.isNavigatedBackToFirstPage()&&f.attachPopstateListener())},f.registerSinglePageScroll=function(){var e=!1,t=p.Helper.throttle(function(){return e?void(f.stickyBar.isDialogInitialize&&f.toggleWidgetOnscroll()):(f.getScrollDirection()==d.KeyMapper.SCROLL_DOWN&&window.scrollY>=window.innerHeight&&(e=!0,f.stickyBarInitializeDialog()),!1)},200);document.addEventListener("scroll",function(){t()},!1)},f.stickyBarInitializeDialog=function(){try{var e=void 0;u.Config.stickyBar.ads&&(e=p.Helper.addExternalJS(s.AdManager.GPTScriptSrc,"izootoGPT")),Promise.all([e,f.showStickyBarDialog()]).then(function(){u.Config.stickyBar.ads&&f.stickyBarAdsHandler()}).catch(function(e){p.Helper.displayLog(" Stickybar initializeDialog error",e)})}catch(e){}},f.exitIntentInitializeDialog=function(e){try{if(f.isElementinViewport)return f.triggerData.exitIntent.isHidden=!0,f.triggerData.exitIntent.triggerType=e,!1;if(f.exitIntent.isDialogInitialize)return!1;f.exitIntent.isDialogInitialize=!0;var t=void 0;!0===s.AdManager.isThirdPartyAds()?t=s.AdManager.getJSONAd():u.Config.exitIntent.ads?t=p.Helper.addExternalJS(s.AdManager.GPTScriptSrc,"izootoGPT"):u.Config.exitIntent.adfc&&(t=Promise.resolve()),Promise.all([t,f.showexitIntentDialog(e)]).then(function(e){var t;null!==(t=e[0])&&void 0!==t&&t.hasOwnProperty("isAd")?f.exitIntentAdsHandler(e[0]):3==u.Config.exitIntent.templateType?f.exitIntentNoContentAdsHandler():f.exitIntentAdsHandler()}).catch(function(e){p.Helper.displayLog("Exit intent initializeDialog error",e)})}catch(e){}},f.setExitIntentFeed=function(e){if(e.length==f.exitIntent.maxAllowedPost&&"object"==typeof e)return 2!=u.Config.exitIntent.templateType?(f.exitIntent.largePostData=e[0],e.shift(),f.exitIntent.smallPostData=e):f.exitIntent.template2PostData=e,!0},f.showexitIntentDialog=function(o){return a(this,void 0,void 0,function(){return l(this,function(e){try{return[2,new Promise(function(t,n){f.exitIntent.triggerOnEventType=o,f.getParsedFeed(u.Config.exitIntent.osnType).then(function(e){f.setExitIntentFeed(e)&&f.getHTML(f.exitIntent.htmlSrc).then(function(e){p.Helper.addHTML("div",e,f.exitIntent.dialogBoxID),f.getExitIntentDialogToDisplay(e).then(function(e){r.ChannelEventHandler.event("exitIntent",d.KeyMapper.EXITINTENT_SHOWN),e.style.display="block",f.syncOnsiteView(u.Config.exitIntent.osnType),p.Helper.setRepeatPromptDelay(u.Config.exitIntent.repeatDelay,d.KeyMapper.EXITINTENT_DELAY),t(!0)})})}).catch(function(e){n(!1),p.Helper.displayLog("showDialog error",e)})})]}catch(e){}return[2]})})},f.exitIntentTrackingObj=function(){return o({pid:u.Config.client,bkey:u.Config.UUID,cid:u.Config.exitIntent.cid,rid:u.Config.exitIntent.rid,ed:f.getEventTime(),tt:f.exitIntent.triggerOnEventType,ot:u.Config.exitIntent.osnType},f.exitIntent.rfid?{fi:f.exitIntent.rfid}:{})},f.getExitIntentDialogToDisplay=function(e){return a(this,void 0,void 0,function(){return l(this,function(e){return[2,new Promise(function(e,t){try{2!=u.Config.exitIntent.templateType?f.setExitIntentPostsArticle():f.setExitIntentTemplate2Post(),f.exitIntentApplyConfigStyle(),e(f.getTypedDomElement(".iz_osn",u.Config.exitIntent.osnType))}catch(e){t()}})]})})},f.geStickyBarDialogToDisplay=function(e){return a(this,void 0,void 0,function(){return l(this,function(e){return[2,new Promise(function(e,t){try{f.setStickyBarArticle(),f.stickyBarApplyConfigStyle(),e(f.getTypedDomElement(".iz_osn",u.Config.stickyBar.osnType))}catch(e){t()}})]})})},f.setLargePostArticle=function(){var e=f.getTypedDomElement(".".concat(f.osnPrefix,"left"),u.Config.exitIntent.osnType),t=p.Helper.getDomElement(".iz_osn_article_1");f.exitIntent.leftPostHTML=t.cloneNode(!0),f.setOsnDataIntoElement(e,f.exitIntent.largePostData,0,u.Config.exitIntent.osnType)},f.setExitIntentPostsArticle=function(){try{f.setLargePostArticle();var e=f.getTypedDomElement(".".concat(f.osnPrefix,"right"),u.Config.exitIntent.osnType),t=f.getTypedDomElement(".".concat(f.osnPrefix,"smContainer"),u.Config.exitIntent.osnType);f.exitIntent.singlePostHTML=t;var n=document.querySelector(".".concat(f.osnPrefix,"smContainer_1>div")),o=window.getComputedStyle(n).getPropertyValue("background-image");f.defaultImage=o.match(/\((.*?)\)/)[1].replace(/('|")/g,""),null!=t&&t.remove(),1!=u.Config.global.deviceType&&(!0===s.AdManager.isThirdPartyAds()?f.exitIntent.smallPostAllowed=3:f.exitIntent.smallPostAllowed=u.Config.exitIntent.ads?3:2),3==u.Config.exitIntent.templateType&&(f.exitIntent.smallPostAllowed=u.Config.global.deviceType==d.KeyMapper.DEVICE_TYPE_DESKTOP?3:2);for(var i=0;idiv");300 *"),n={},o=new IntersectionObserver(function(e,t){e=e.reduce(function(e,t){return t.intersectionRatio>e.intersectionRatio?t:e});0t.getTime()&&(e=!0,s.Helper.displayLog("Wait until onetap repeat delay expire!")),e},u.syncSubscription=function(o){return new Promise(function(e,t){var n=s.Helper.getEndpoint("syncEmail");c.Storage.setConfigLocal(l.KeyMapper.EMAIL_NOT_SYNCED,1),i.HttpRequest.postForm(n,o,!0).then(function(){c.Storage.removeConfigLocal(l.KeyMapper.EMAIL_NOT_SYNCED),"Email payload synced successfully with ".concat(a.Config.brandingPartner),e(!0)}).catch(function(){return t(!1)})})},u.eventCallbackHandler=function(e){s.Helper.displayLog("one tap callback responce",e),"display"==e.g&&e.h?(u.setRepeatPromptDelay(a.Config.email.repeatPromptDelay),o.ChannelEventHandler.event("email",l.KeyMapper.EMAIL_INPROGRESS),s.Helper.displayLog("OneTap Prompt is Displayed on ".concat(1==s.Helper.getDeviceType()?"Desktop":"Mobile"))):o.ChannelEventHandler.event("email",l.KeyMapper.EMAIL_CLOSED),"skipped"!=e.g&&"dismissed"!=e.g||s.Helper.displayLog("OneTap Prompt is Dismissed or skipped")},u.setRepeatPromptDelay=function(e){var t;0!==e&&(t=(t=new Date).setTime(t.getTime()+60*e*1e3),"Setting email onetap repeat prompt delay for ".concat(e," minutes"),c.Storage.setConfigLocal(l.KeyMapper.ONETAP_REPEAT_PROMPT_DELAY,t))},u.isPromptShown=!1,u.emailValidatorRegex=new RegExp(/^\S+@\S+\.\S+$/),u.responseObj={SYNCED:{success:!0,response:"Synced"},ALREADY_SYNCED:{success:!0,response:"Already Synced"},INVALID_EMAIL:{success:!1,response:"Invalid Email",errorCode:1},SYNC_FAILED:{success:!1,response:"Sync failed",errorCode:2}},u);function u(){}},function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function o(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,i)}r((c=c.apply(e,a||[])).next())})},c=this&&this.__generator||function(n,o){var i,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(i=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]a[0]&&t[1]=r)return{value:!1}}}}}(e);if("object"==typeof t)return t.value}return!0},c.prototype.isDateTimeSegmentValidated=function(e,t,n){var o,e=e[t],i="lci"==t?T.Config.store.lastClick:T.Config.store.lastView;if("px"==t)try{var r=P.Storage.getConfigLocal(n,O.KeyMapper.USER_PROPERTY);if(!r)return!1;for(var i=new Date(r).getTime(),a=[],s=null===(o=e[n])||void 0===o?void 0:o.values,c=0,l=s;cg.getTime())return!1;break;case"after":if(ii&&i=n&&(o.notificationShowKeyList.push(e.key),o.notificationShowList.push(e))}),this.notificationShowList.sort(function(e,t){return t.payload.ct-e.payload.ct})},c.prototype.storeSegmentIntoIdb=function(e){for(var t=0,n=e;ta[0]&&t[1]a[0]&&t[1] ')}).join("")},d.checkVisibility=function(e){return(null===(e=c.Helper.getDomElement("#".concat(e)))||void 0===e?void 0:e.offsetParent)||null},d.initPopup=function(t){var e,n,o=this;void 0===t&&(t=!1),(p.Storage.getConfigLocal(u.KeyMapper.ONSITE_ADS_ALLOWED)||t)&&(e=s.Config.adBR.templateId,n=s.Config.adBR.htmlVersion[e],l.HttpRequest.get("https://cdn.izooto.com/osn/adbr/".concat(e,"/v").concat(n,".html")).then(function(e){c.Helper.addHTML("div",e),o.attachEventListners(),o.setSiteLogo(),o.setScreen(t),3<=p.Storage.getConfigLocal(u.KeyMapper.ONSITE_ADS_REFRESH_COUNT)&&(o.showCloseButton(),p.Storage.removeConfigLocal(u.KeyMapper.ONSITE_ADS_REFRESH_COUNT)),a.ChannelEventHandler.event("adblock",u.KeyMapper.ADBLOCK_READY_SHOW)}).catch(function(e){}))},d.setSiteLogo=function(){var t=this;s.Config.adBR.logoSrc?document.querySelectorAll("."+f.brandImage).forEach(function(e){e.src=s.Config.adBR.logoSrc,e.onerror=function(){return t.brandLogoNotAvailable()}}):this.brandLogoNotAvailable()},d.setScreen=function(e){p.Storage.getConfigLocal(u.KeyMapper.ONSITE_ADS_ALLOWED)&&0==e?this.showThankyouSection():(this.syncImpression(),p.Storage.setConfigLocal(u.KeyMapper.ONSITE_ADS_ALLOWED,1),p.Storage.setConfigLocal(u.KeyMapper.ONSITE_ADS_REFRESH_COUNT,(p.Storage.getConfigLocal(u.KeyMapper.ONSITE_ADS_REFRESH_COUNT)||0)+1))},d.attachEventListners=function(){var e=this,t=c.Helper.getDomElement("."+f.allowADS),n=c.Helper.getDomElement("."+f.refreshButton),o=c.Helper.getDomElement("."+f.closeButton);t.addEventListener("click",function(){c.Helper.hideElement("."+f.section1),c.Helper.hideElement("."+f.section3),c.Helper.showElement("."+f.content)}),n.addEventListener("click",function(){window.location.reload()}),o.addEventListener("click",function(){e.hidePopup()});var i=document.querySelectorAll("."+f.tabButton);i.forEach(function(e,n){e.addEventListener("click",function(){document.querySelectorAll("."+f.tabContent+" ol").forEach(function(e,t){i[t].classList.add(f.activeTab),n==t?(e.style.display="block",i[t].classList.add(f.activeTab)):(e.style.display="none",i[t].classList.remove(f.activeTab))})})})},d.showThankyouSection=function(){p.Storage.removeConfigLocal(u.KeyMapper.ONSITE_ADS_ALLOWED),this.syncClick(),this.showCloseButton(),c.Helper.hideElement("."+f.section1),c.Helper.hideElement("."+f.content),c.Helper.showElement("."+f.section3,!1),s.Config.adBR.adUnit&&o.AdManager.loadAdBlockerAd().catch(function(){})},d.syncImpression=function(){this.sendToServer(c.Helper.getEndpoint("syncOnsiteView"))},d.syncClick=function(){this.sendToServer(c.Helper.getEndpoint("syncOnsiteClick"))},d.sendToServer=function(e){var t={pid:s.Config.client,bkey:s.Config.UUID,cid:s.Config.adBR.cid,rid:s.Config.adBR.rid,ot:4};s.Config.adBR.rid&&s.Config.adBR.cid&&l.HttpRequest.postForm(e,t,!0).then(function(){"Onsite Adblocker ".concat(e," synced successfully with ").concat(s.Config.brandingPartner)}).catch(console.log)},d.showCloseButton=function(){c.Helper.getDomElement("."+f.closeButton).style.visibility="visible"},d.hidePopup=function(){c.Helper.hideElement("#"+f.mainContainer),a.ChannelEventHandler.event("adblock",u.KeyMapper.ADBLOCK_CLOSED)},d.brandLogoNotAvailable=function(){var e=window.location.hostname.split(".");"www"===e[0]&&e.splice(0,1);var t=e.join(".").toUpperCase();document.querySelectorAll("."+f.brandURL).forEach(function(e){e.style.display="-webkit-box",e.innerHTML=t}),document.querySelectorAll("."+f.brandImage).forEach(function(e){e.style.display="none"})},d.showPopup=function(){c.Helper.showElement("#"+f.mainContainer)},d.bannerIds=["AdHeader","AdContainer","AD_Top","homead","ad-lead"],d);function d(){}var t="iz_osn_adblocker_",f={mainContainer:"iz_osn_adblocker",adChecker:"".concat(t,"detect_container"),brandImage:"".concat(t,"logo img"),brandURL:"".concat(t,"logo_text"),allowADS:"".concat(t,"allowads_button"),refreshButton:"".concat(t,"refresh_button"),section1:"".concat(t,"content_section_1"),content:"".concat(t,"content_section_2"),section3:"".concat(t,"content_section_3"),activeTab:"".concat(t,"active_tab"),tabButton:"".concat(t,"tab_button"),tabContent:"".concat(t,"tab_content"),closeButton:"".concat(t,"close a")}},function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function o(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,i)}r((c=c.apply(e,a||[])).next())})},i=this&&this.__generator||function(n,o){var i,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(i=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]